package com.taldh.springdata;

import com.taldh.springdata.JpaConfig;
import com.taldh.springdata.dao.UserDao;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

@SpringJUnitConfig(JpaConfig.class)
public class JpaTest {

    @Autowired
    UserDao userDao;

    @Test
    public void testUserApi() {
        userDao.findByUserDao();
        userDao.insertMethod();
        userDao.findMethod();
        userDao.updateMethod();
        userDao.deleteMethod();
    }

}
